/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: 
 * License Type: Evaluation
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tan_alumnoDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression al_id_alumno;
	public final StringExpression al_nombre;
	
	public Tan_alumnoDetachedCriteria() {
		super(orm.Tan_alumno.class, orm.Tan_alumnoCriteria.class);
		al_id_alumno = new IntegerExpression("al_id_alumno", this.getDetachedCriteria());
		al_nombre = new StringExpression("al_nombre", this.getDetachedCriteria());
	}
	
	public Tan_alumnoDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Tan_alumnoCriteria.class);
		al_id_alumno = new IntegerExpression("al_id_alumno", this.getDetachedCriteria());
		al_nombre = new StringExpression("al_nombre", this.getDetachedCriteria());
	}
	
	public Tan_cursoDetachedCriteria createCu_id_cursoCriteria() {
		return new Tan_cursoDetachedCriteria(createCriteria("cu_id_curso"));
	}
	
	public Tan_anotacionDetachedCriteria createTan_anotacionCriteria() {
		return new Tan_anotacionDetachedCriteria(createCriteria("ORM_Tan_anotacion"));
	}
	
	public Tan_alumno uniqueTan_alumno(PersistentSession session) {
		return (Tan_alumno) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tan_alumno[] listTan_alumno(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tan_alumno[]) list.toArray(new Tan_alumno[list.size()]);
	}
}

